<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');

class MY_Controller extends CI_Controller {

    function __construct()
	{
		parent::__construct();

			//check if user is logged
			if(!$this->session->userdata('client_logged')){
				$this->session->set_flashdata("return_url", uri_string());
	            if($this->uri->segment(1)!="auth")
					redirect('auth/login');
	    	}

		
		
	}

	

}